package io.binghe.seckill.domain.response;

/**
 * @author binghe(微信 : hacker_binghe)
 * @version 1.0.0
 * @description 响应消息构建类
 * @github https://github.com/binghe001
 * @copyright 公众号: 冰河技术
 */
public class ResponseMessageBuilder {

    public static <T> ResponseMessage<T> build(Integer code, T body){
        return new ResponseMessage<T>(code, body);
    }

    public static <T> ResponseMessage<T> build(Integer code){
        return new ResponseMessage<T>(code);
    }

}